<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CMDB-指标项管理</title>
    <link href="${path}/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path}/js/user_js.js"></script>
    <script src="${path}/common/plugins/bootstrap/js/bootstrap.js"></script>
    <script src="${path}/common/plugins/layer/layer.js"></script>
    <script src="${path}/js/common.js" type="text/javascript"></script>
    <style>
        html,body {margin:0;padding:0;}
        body{background:#f1f1f1;height:100%;}
    </style>
</head>
<body>
<div class="content">
    <div class="content_detail">
        <div class="control-title">
            <i class="user_manage content_current"></i><span>指标项管理</span>
            <div class="spanbtn">
                <button class="press_btn1" onclick="addIndicators();"><i class="add top_current"></i>添加</button>
                <button class="press_btn2" onclick="deleteIndicators();"><i class="del top_current"></i>删除</button>
            </div>
        </div>
        <div class="content_condition">
            <div class="content_group">
                <div class="span3">
                    <label class="control-label">名称:</label>
                    <div class="controls">
                        <input id="partName" type="text"/>
                    </div>
                </div>
                <div class="span3">
                    <label class="control-label">编码:</label>
                    <div class="controls">
                        <input id="bcode" type="text"/>
                    </div>
                </div>
                <div class="span3">
                    <label class="control-label">类型:</label>
                    <div class="controls">
                        <select id="type">
                            <option value="">请选择...</option>
                            <c:forEach items="${listType }" var="type">
	                            <option value="${type.lookupCode }">${type.cdeName }</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
            </div>
            <div class="last_group">
                <div class="span3">
                    <label class="control-label">部件:</label>
                    <div class="controls">
                        <select id="partsId">
                            <option value="">请选择...</option>
                            <c:forEach items="${listPart}" var="part">
	                            <option value="${part.partsId }">${part.name }</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="spanbtn">
                    <button class="press_btn1" onclick="searchPaging();"><i class="search top_current"></i>查询</button>
                </div>
            </div>
        </div>
        <div class="content_table">
            <table class="table table-striped table-bordered table-hover table-ellipsis details">
                <thead>
                <tr>
                    <th style="width:10px"><input type="checkbox" class="checkAll" title="全选"/></th>
                    <th>名称</th>
                    <th>编码</th>
                    <th>类型</th>
                    <th>所属部件</th>
                    <th>是否可删除</th>
                    <th style="width:59px;">操作</th>
                </tr>
                </thead>
                <tbody id="partsForm">
                	
                </tbody>
            </table>
            <!-- 引入-->
            <%@ include file="/common/jsp/footer_pager.jsp"%>
        </div>
    </div>
</div>
</body>
<script src="index_management.js"></script>
</html>
